From 369a8701085494ad6c128df2de674bc945c68b53 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 10 Jul 2013 04:47:02 +0000 Subject: [PATCH] Shave another 17% of read performance out on GPX read by eliminating a copy/converstion on each incoming tag. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4418 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 0c7eb5c10..245839b4b 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -681,7 +681,7 @@ gpx_start(void* data, const XML_Char* xml_el, const XML_Char** xml_attr) */ *(char*) cdatastr.mem = 0; - tag = get_tag(qPrintable(current_tag), &passthrough); + tag = get_tag(current_tag, &passthrough); switch (tag) { case tt_gpx: tag_gpx(attr); @@ -932,7 +932,7 @@ gpx_end(void* data, const XML_Char* xml_el) fprintf(stderr, "Mismatched tag %s. Expected %s\n", el, qPrintable(s)); } - tag = get_tag(qPrintable(current_tag), &passthrough); + tag = get_tag(current_tag, &passthrough); switch (tag) { /* * First, the tags that are file-global. -- 2.30.2